<div class="box-body">
    <form class="layui-form" action="{:url('/wms/wcheck/save')}" method="post">
        {if isset($check)}
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">盘点单号</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="盘点单号/保存自动生成" disabled  name="check_sn" {if isset($check)}value="{$check.check_sn}"{/if}  class="layui-input" />
            </div>
        </div>
        {/if}
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">盘点时间</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" id="check-date" placeholder="盘点时间"  name="check_date" {if isset($check)}value="{$check.check_date}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="备注"  name="remark" {if isset($check)}value="{$check.remark}"{/if} class="layui-input" />
            </div>
        </div>
        {if isset($check)}
        <div class="layui-form-item">
            <label class="layui-form-label">盘点完成</label>
            <div class="layui-input-block">
                <input type="checkbox" name="status" value="1" {if isset($check) && $check.status=='1'}checked{/if} lay-skin="switch">
            </div>
        </div>
        <input type="hidden" name="check_id" value="{$check.check_id}">
        {/if}
    </form>
</div>
<script type="text/javascript">
    layui.use(['laydate'], function()
    {
        layui.laydate.render({
            elem: "#check-date"
            ,min: 0
        });
    });
</script>